package orange.play.c2dm;

import java.io.IOException;

import orange.play.c2dm.utils.AuthenticationUtil;
import orange.play.c2dm.utils.MessageUtil;
import orange.play.c2dm.utils.ServerConfiguration;


public class main {

	public static void main(String[] args) throws IOException {
    	//System.setProperty("http.proxyHost", "p-goodway.rd.francetelecom.fr");
    	//System.setProperty("http.proxyPort", "3128");
		String token = AuthenticationUtil.getToken("osvaldo.cocucci@gmail.com",
				"doudou");
		System.out.println(token);
		MessageUtil.sendMessage(ServerConfiguration.AUTHENTICATION_TOKEN, ServerConfiguration.REGISTRATION_ID,
				"hello c2dm app");
	}
}
